package com.qy.service.impl;

import com.qy.dao.AdminMapper;
import com.qy.model.Admin;
import com.qy.model.Permissions;
import com.qy.service.AdminService;
import com.qy.base.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


/**
 * Created by zaq on 2018/03/13.
 */
@Service
@Transactional
public class AdminServiceImpl extends AbstractService<Admin> implements AdminService {
    @Resource
    private AdminMapper qyAdminMapper;

    @Override
    public List<Map> selectAdminList(Admin admin) {
        return qyAdminMapper.selectAdminList(admin);
    }

    @Override
    public List<Permissions> permissionsList(int role_id) {
        return qyAdminMapper.permissionsList(role_id);
    }
}
